package com.ideaaedi.springcloud.jd.message;

import com.ideaaedi.commonspring.annotation.EnableParameterRecorder;
import com.ideaaedi.springcloud.jd.commonspring.annotation.EnableJdFeature;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 消息服务
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.5.A
 */
@EnableAsync
@EnableFeignClients
@SpringBootApplication
@MapperScan(value = {
        "com.ideaaedi.springcloud.jd.commonspring.mapper",
        "com.ideaaedi.springcloud.jd.message.mapper"
})
@ComponentScan(basePackages = {
        "com.ideaaedi.springcloud.jd.commonspring",
        "com.ideaaedi.springcloud.jd.message"
})
@EnableParameterRecorder(includePrefixes = "com.ideaaedi.springcloud.jd", ignoreParamTypes = {MultipartFile.class,
        HttpServletRequest.class, HttpServletResponse.class})
@EnableJdFeature(enableApiRefresher = true, enableFillReturnAdvice = true)
public class MessageApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(MessageApplication.class, args);
    }
}
